<script>
	export default {
		onLaunch: function() {
			console.log('App Launch')
			this.$store.dispatch("connectSocket");
				this.$store.dispatch("initlogin")
	const dom = weex.requireModule('dom')
	dom.addRule('fontFace', {
	    'fontFamily': "iconfont",
	    'src': "url('http://at.alicdn.com/t/font_1859985_7mxozsfdvib.ttf')"
	});
	
			uni.onTabBarMidButtonTap(() => {
				uni.navigateTo({
					url: "/pages/createLive/createLive"
				})
			})

		},
		onNavigationBarButtonTap: function(e) {
			console.log(e, "e");
		},
		onShow: function() {
			console.log('App Show')
		},
		onHide: function() {
			console.log('App Hide')
		}
	}
</script>
<style>
	.uni-page-head .uni-page-head-bd {
		left: 20rpx !important;
	}

	.uni-page-head .uni-page-head__title {

		/* 	text-align: left; */
	}
</style>
<style>
	/*每个页面公共css */
	@import "./common/free.css";
	@import "./common/common.css";

	@import "./common/icon.css"
</style>
